"""Module for get weather attributes from json"""

from weath_locale import *
import datetime,requests,json

openweatherAPI = '0fb610dab7456bc44dbdde2ddba9be71'


def city_rename(city_name):
    """Translate city name"""
    try:
        return city_dict[city_name]
    except:
        return city_name

def weather_rename(desc):
    """Translate weather description"""
    try:
        desc_ru = weather_dic[desc]
        return desc_ru
    except:
        return desc



def rename(d_key,diction):
    """Translate city name"""
    try:
        return diction[d_key]
    except:
        return d_key




